//
//  HXChickUpHistoryCollectionViewCell.m
//  KD
//
//  Created by ifly on 16/8/6.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXChickUpHistoryCollectionViewCell.h"

@implementation HXChickUpHistoryCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

-(void)setData:(HXGetChickUpHistoryDetailModel *)data {
    
    _data = data;
    
    self.dateTimeLabel.text  = _data.CreateTime;
    
    for (int i = 0; i < data.HistoryData.count;i++) {
        
        HXGetChickUpHistoryDataModel *model = data.HistoryData[i];
        //企业名称
        if ([model.ItemID isEqualToString:@"ContractorCorpName"]) {
            
            _OldContentLabel.text = model.OldContent;
            _NewContentLabel.text = model.NewContent;
            _contentLabel.text    = model.ItemName;
        }
        //施工入场企业组织机构代码
        else if ([model.ItemID isEqualToString:@"ContractorCorpCode"]){
        
            _oldZuZhiDaiMaLabel.text = model.OldContent;
            _NewZuZhiDaiMaLabel.text = model.NewContent;
            _zuzhiDaiMaLabel.text    = model.ItemName;
        }else if ([model.ItemID isEqualToString:@"QualificationLevOfContractor"]){
        
            _oldZiZhiDengJILabel.text = model.OldContent;
            _NewZiZhiDengJiLabel.text = model.NewContent;
            _zizhiDengJiLabel.text    = model.ItemName;
        }else if ([model.ItemID isEqualToString:@"QualificationOfContractor"]){
        
            _oldZiZhiLable.text = model.OldContent;
            _NewZiZhiLable.text = model.NewContent;
            _zizhiLabel.text    = model.ItemName;
        }
    }
}

////时间
//@property (weak, nonatomic) IBOutlet UILabel *dateTimeLabel;
//
////企业名称
//@property (weak, nonatomic) IBOutlet UILabel *OldContentLabel;
//@property (weak, nonatomic) IBOutlet UILabel *NewContentLabel;
//
////组织代码
//@property (weak, nonatomic) IBOutlet UILabel *oldZuZhiDaiMaLabel;
//@property (weak, nonatomic) IBOutlet UILabel *NewZuZhiDaiMaLabel;
//
////资质等级
//@property (weak, nonatomic) IBOutlet UILabel *oldZiZhiDengJILabel;
//@property (weak, nonatomic) IBOutlet UILabel *NewZiZhiDengJiLabel;
//
////资质
//@property (weak, nonatomic) IBOutlet UILabel *oldZiZhiLable;
//@property (weak, nonatomic) IBOutlet UILabel *NewZiZhiLable;








@end
